package com.bjx.generator.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc: 代码模板实体
 * @author: liushuai
 * @date: 2022/9/7 21:49
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("gen_template")
@Schema(title = "TemplateEntity",description = "代码模板实体")
public class TemplateEntity {
    /**
    * 模板Id
    */
    @TableId(type = IdType.AUTO)
    @Schema(title = "templateId",description = "模板Id")
    private Long templateId;

    /**
    * 模板名称
    */
    @Schema(title = "templateName",description = "模板名称")
    private String templateName;

    /**
    * 模板类型
    */
    @Schema(title = "templateType",description = "模板类型")
    private String templateType;

    /**
    * 应用类型(例如:1、编辑表单，2、列表页面)
    */
    @Schema(title = "type",description = "应用类型(例如:1、编辑表单，2、列表页面)")
    private Short type;

    @Schema(title = "codeType",description = "代码语言类型")
    private String codeType;

    /**
    * 模板内容
    */
    @Schema(title = "templateContent",description = "模板内容")
    private String templateContent;
    /**
     *  文件路径
     */
    @Schema(title = "filePath",description = "相对路径")
    private String filePath;
    /**
     *  文件名称
     */
    @Schema(title = "fileName",description = "文件名称")
    private String fileName;

    /**
     *  删除标识
     */
    @Schema(title = "delFlag",description = "删除标识")
    private Short delFlag;

}